
#include	"my.h"

int		my_strcpr(char *str, char *str2)
{
  int		i;
  int		j;

  i = 0;
  i = epur_buff(str, 0);
  j = 0;
  while (str[i])
    {
      if (str[i] != str2[j] && str2[j])
        return (0);
      if (str2[j] == '\0' && str[i] == ' ')
        {
          i = epur_buff(str, i);
          if (str[i] == '\0')
            return (1);
          else
            return (0);
        }
      i++;
      j++;
    }
  if (str[i] == str2[j])
    return (1);
  else
    return (0);
}

